home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET
/
BCI NET Dec 94.iso
/
archives
/
telecomm
/
bbs
/
axshsupp.lha
/
AXsh-Topic17.lha
/
topic.man
< prev
next >
Wrap
Text File
|
1992-10-28
|
3KB
|
98 lines
Topic v. 1.7 Manual
-------------------
Released 28-Oct-1992 by Markku 'Hack' Mellanen
----------------------------------------------
Topic program runs commands from menu by user's choise. You can make
your own menus which includes commands you/user can execute.
Topic was made to run under axsh but you can use also under ADOS....
You can give following parameters to TOPIC:
first parameter is menu_file, so file name what will be as a main menu
in topic.
Second parameter is a prompt displayed after menu.
Exmpl. TOPIC MAIN_MENU.RC "CHOISE (Q TO QUIT):"
Note if you have more than one word in prompt parameter use ""'s....
In case you give no parameters, topic will use AXSH:ETC/TOPIC.RC and CHOISE
(Q TO QUIT): as a default file and prompt.
Structure of menu file: (Exmpl. TOPIC.RC)
+------------------------------+--------------------------------------------+
|Commands: | |
| | |
|a)avail (Memory stat.) |m)Msg menu |
|i)info (Disk stat.) |f)File menu |
|d)dir (Directory) |e)editor |
|w)who (User on-line etc.) | |
|c)Chat (Chat with root) | |
+------------------------------+--------------------------------------------+
#
a
c:avail
---
i
info
---
d
c:dir
---opt a
w
type
---ram:env/sysghost
c
axsh:bin/cc
---
m
axsh:bin/topic
---axsh:etc/msgmenu.rc "Choise:"
f
axsh:bin/topic
---axsh:etc/filemenu.rc "Choise (Q to main menu):"
e
axsh:bin/editor
-p?Filename:
#
First part is text-part what will be displayed to user. # is a end mark of this
part. After that come part where are defined all items, commands, flags and
parameters.
First is a item, ex. A, then comes command what will be executed in case
A is user's choise. Ex. AVAIL
Then comes flags and parameters for command.
First flag (r/-) is for RAW-mode, if flag is r, command will be executed in
raw mode. With every other letter command is executed in CON-mode!
Second flag (p/-) stands for PATH-cheking, so if p-flag is true, topic
will accept no paramters to command. (So it checks : and / marks in parameter)
Third flag (?/-) must set if you want ask parameter from user
(Ex. ED --?Filename:). So if ? is true, topic will display text following ?-
mark and ask parameter.
Example:
E
axsh:bin/editor
-p?Filename:
will execute editor and ask filename from user and check that there are no
: or / marks in paramter...
You can use sub-menus by running another topic by topic.
Exmpl.
S
TOPIC
---SUB_MENU.RC PROMPT
And sub-menu's structure is equal to main-menu's structure.
#-mark is endmark of menufile! You can put ANSI-control codes to
your menufiles, program should not have any problems with them.
NOTE. If you don't give any parameters to command, remember to put
--- in parameterline, otherwise progrem will get confused with
item/command/flags...
Program is case-sensitive with items and flags!
Bugs and improvement suggetions to:
Markku Mellanen
Valjaskatu 2 e 72 15830 Lahti
Puh. 918-535 259
Axnet: root@hack.lahti.fi